{% extends 'base.html' %}
{% from 'macros.html' import render_pagination %}
{%block title %}总排行榜{% endblock %}
{% block body %}
<h2 class="ui header" style="text-align: center;">
			总排行榜
	</h2>
	<table class="ui celled table" style="text-align: center;">
		<thead>
			<tr>
				<th>
					排名
				</th>
				<th>
					uid
				</th>
				<th>
					username
				</th>
				<th>
					犇犇条数
				</th>
			</tr>
		</thead>
		<tbody>
			{% for i in messages %}
				{% set pm = (pagination.page-1)*20+loop.index%}
				<tr>
					<td>
						{% if pm==1 %}
							<svg t="1588329338352" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1118" width="20" height="20"><path d="M824.891164 113.777778V28.444444a28.444444 28.444444 0 0 0-28.444444-28.444444H227.557831a28.444444 28.444444 0 0 0-28.444444 28.444444v85.333334H0.002276v227.555555a256 256 0 0 0 232.96 256A312.888889 312.888889 0 0 0 455.113387 762.595556V910.222222l-113.777778 113.777778h341.333333l-113.777778-113.777778v-147.626666A312.888889 312.888889 0 0 0 791.042276 597.333333 256 256 0 0 0 1024.002276 341.333333V113.777778zM113.780053 341.333333V227.555556h85.333334v244.337777A142.222222 142.222222 0 0 1 113.780053 341.333333z m796.444445 0a142.222222 142.222222 0 0 1-85.333334 130.56V227.555556h85.333334z" p-id="1119" fill="#FFD700"></path></svg>
						{% endif %}
						{% if 2<=pm<=5 %}
							<svg t="1588329338352" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1118" width="20" height="20"><path d="M824.891164 113.777778V28.444444a28.444444 28.444444 0 0 0-28.444444-28.444444H227.557831a28.444444 28.444444 0 0 0-28.444444 28.444444v85.333334H0.002276v227.555555a256 256 0 0 0 232.96 256A312.888889 312.888889 0 0 0 455.113387 762.595556V910.222222l-113.777778 113.777778h341.333333l-113.777778-113.777778v-147.626666A312.888889 312.888889 0 0 0 791.042276 597.333333 256 256 0 0 0 1024.002276 341.333333V113.777778zM113.780053 341.333333V227.555556h85.333334v244.337777A142.222222 142.222222 0 0 1 113.780053 341.333333z m796.444445 0a142.222222 142.222222 0 0 1-85.333334 130.56V227.555556h85.333334z" p-id="1119" fill="#C0C0C0"></path></svg>
						{% endif %}
						{% if 6<=pm<=20 %}
							<svg t="1588329338352" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1118" width="20" height="20"><path d="M824.891164 113.777778V28.444444a28.444444 28.444444 0 0 0-28.444444-28.444444H227.557831a28.444444 28.444444 0 0 0-28.444444 28.444444v85.333334H0.002276v227.555555a256 256 0 0 0 232.96 256A312.888889 312.888889 0 0 0 455.113387 762.595556V910.222222l-113.777778 113.777778h341.333333l-113.777778-113.777778v-147.626666A312.888889 312.888889 0 0 0 791.042276 597.333333 256 256 0 0 0 1024.002276 341.333333V113.777778zM113.780053 341.333333V227.555556h85.333334v244.337777A142.222222 142.222222 0 0 1 113.780053 341.333333z m796.444445 0a142.222222 142.222222 0 0 1-85.333334 130.56V227.555556h85.333334z" p-id="1119" fill="#B87333"></path></svg>
						{% endif %}
						#{{pm}}
					</td>
					<td>
						{{i.uid}}
					</td>
					<td>
						<a href="/user/{{i.uid}}">{{i.username}}</a>
					</td>
					<td>
						{{i.count}}
					</td>
				</tr>
			{% endfor %}
		</tbody>
	</table>
	{{ render_pagination(pagination) }}
{% endblock %}